11. pHit and pMiss
pHit and pMiss
Question:
Start Quiz:
#Write code that outputs p after multiplying each entry
#by pHit or pMiss at the appropriate places. Remember that
#the red cells 1 and 2 are hits and the other green cells
#are misses.
p=[0.2,0.2,0.2,0.2,0.2]
pHit = 0.6
pMiss = 0.2
#Enter code here
print p
User's Answer:
(Note: The answer done by the user is not guaranteed to be correct)
#Write code that outputs p after multiplying each entry
#by pHit or pMiss at the appropriate places. Remember that
#the red cells 1 and 2 are hits and the other green cells
#are misses.
p=[0.2,0.2,0.2,0.2,0.2]
pHit = 0.6
pMiss = 0.2
#Enter code here
p = [0.2*0.2,0.2*0.6,0.2*0.6,0.2*0.2,0.2*0.2]
print p
Solution:
INSTRUCTOR NOTE:
Reminder, we're looking for:
[miss, hit, hit, miss, miss]